Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 11 - Renderer Objects / Renderer Objects Reference
Constants


CSG Equations

QuickDraw 3D provides constants for some common CSG equations. See "Constructive Solid Geometry" on page 11-6 for more information on how CSG equations are determined.

typedef enum TQ3CSGEquation {
   kQ3CSGEquationAandB                 = (int) 0x88888888,
   kQ3CSGEquationAandnotB              = 0x22222222,
   kQ3CSGEquationAanBonCad             = 0x2F222F22,
   kQ3CSGEquationnotAandB              = 0x44444444,
   kQ3CSGEquationnAaBorCanD            = 0x74747474
} TQ3CSGEquation;
Constant descriptions

kQ3CSGEquationAandB
A << B. The renderer draws the intersection of object A and object B.
kQ3CSGEquationAandnotB
A << ¨B. The renderer draws the portion of object A that lies outside of object B.
kQ3CSGEquationAanBonCad
(A << ¨B) ªC << D). The renderer draws the portion of object A that lies outside of object B, and the portion of object D that lies outside of object C.
kQ3CSGEquationnotAandB
¨A << B. The renderer draws the portion of object B that lies outside of object A.
kQ3CSGEquationnAaBorCanD
A << B) ª (C << ¨D). The renderer draws the portion of object B that lies outside of object A, and the portion of object C that lies outside of object D.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996